<?php
namespace haibao\cms\business;

use haibao\cms\data\UserOperateHistory;
abstract class Base{
	const ACCESS_DENIED = 1000;
	const DATA_EMPTY = 10000;
	const DATA_EMPTY_NAME = 10001;
	const DATA_EMPTY_PASSWORD = 10002;
	const DATA_EMPTY_ID = 10003;
	const DATA_EMPTY_USER_GROUP = 10004;
	const DATA_EMPTY_REAL_NAME = 10005;
	const DATA_EMPTY_FUNCTION_CODE =10006;
	const DATA_EMPTY_EVNET_TAG = 10007;
	const DATA_EMPTY_EVENT_KEYWORDS = 10008;
	const DATA_EMPTY_PARENT_ID  = 10009;
	
	const DATA_EMPTY_PAGE_CONTROL_CATEGORY_ID = 10100;
	const DATA_EMPTY_PAGE_CONTROL_CATEGORY_NAME = 10101;
	const DATA_EMPTY_PAGE_CONTROL_CATEGORY_PARENT_ID = 10102;
	const DATA_EMPTY_PAGE_CONTROL_NAME = 10103;
	const DATA_EMPTY_PAGE_CONTROL_CONTROLLER = 10104;
	const DATA_EMPTY_PAGE_CONTROL_CATEGORY = 10105;
	const DATA_EMPTY_PAGE_CONTROL_CONTENT = 10106;
	const DATA_EMPTY_PAGE_CONTROL_ID = 10107;
	
	const DATA_EMPTY_FEATURE_ID = 10203;
	const DATA_EMPTY_FEATURE_URL = 10200;
	const DATA_EMPTY_FEATURE_NAME = 10201;
	const DATA_EMPTY_FEATURE_CONTENT = 10202;
	const DATA_EMPTY_FEATURE_SERIAL_NAME = 10300;
	const DATA_EMPTY_FEATURE_SERIAL_ID = 10301;
	
	const DATA_ERROR = 20000;
	const DATA_ERROR_NAME = 20001;
	const DATA_ERROR_PASSWORD = 20002;
	const DATA_ERROR_NAME_EXIST = 20003;
	const DATA_ERROR_EMAIL_EXIST = 20004;
	const DATA_ERROR_NEED_CODE = 20005;
	const DATA_ERROR_CAPTCHA = 20006;
	
	const DATA_ERROR_PAGE_CONTROL_CATEGORY_NAME_EXIST = 20103;
	const DATA_ERROR_PAGE_CONTROL_NAME_EXIST = 20104;
	const DATA_ERROR_PAGE_CONTROL_CATEGORY_CAN_NOT_DELETE = 20105;
	
	const DATA_ERROR_FEATURE_URL_EXIST = 20200;
	const DATA_ERROR_FEATURE_NAME_EXIST = 20201;
	const DATA_ERROR_FEATURE_SERIAL_NAME_EXIST = 20202;
	
	//产品错误代码
	const DATA_ERROR_PRODUCT_ID = 10200;//单品ID
	const DATA_ERROR_PRODUCT_MODEL_ID = 10201;//单品模型ID
	const DATA_ERROR_PRODUCT_BRAND_ID = 10202;//品牌ID
	const DATA_ERROR_PRODUCT_CATEGORY_ID = 10203;//分类
	const DATA_ERROR_PRODUCT_PIC_ID = 10204;//单品图
	const DATA_ERROR_PRODUCT_NAME = 10205;//单品图
	
	//文章
	const DATA_ERROR_ARTICLE_ID = 10300;//ID
	const DATA_ERROR_ARTICLE_TITLE = 10301;//标题
	const DATA_ERROR_ARTICLE_CONTENT = 10302;//内容
	const DATA_ERROR_ARTICLE_SOURCE = 10303;//来源
	const DATA_ERROR_ARTICLE_TAG = 10304;//标签
	const DATA_ERROR_ARTICLE_PRIMAIY_TAG = 10305;//主标题
	const DATA_ERROR_ARTICLE_IMAGE = 10306;//文章内容中图片
	const DATA_ERROR_ARTICLE_POINT_ADD = 10307;//添加文章看点
	const DATA_ERROR_ARTICLE_VOTE_ADD = 10308;//添加文章投票
	const DATA_ERROR_ARTICLE_VOTE_UPDATE = 10309;//修改文章投票
	const DATA_ERROR_ARTICLE_VOTE_DEL = 10310;//删除文章投票
	const DATA_ERROR_ARTICLE_CALENDAR_ADD = 10311;//添加文章造型日历
	const DATA_ERROR_ARTICLE_CALENDAR_UPDATE = 10312;//更新文章造型日历
	const DATA_ERROR_ARTICLE_CALENDAR_DELETE = 10313;//删除文章造型日历
	

	const FUNCTION_CODE = 110;
	
	const FUNC_CODE_USER_ADD = 10000;
	const FUNC_CODE_USER_LOGIN = 10001;
	const FUNC_CODE_USER_LOGOUT = 10002;
	const FUNC_CODE_USER_EDIT = 10003;
	const FUNC_CODE_USER_LIST = 10004;
	
	const FUNC_CODE_USERGROUP_ADD = 10005;
	const FUNC_CODE_USERGROUP_EDIT = 10006;
	const FUNC_CODE_USERGROUP_DELTE = 10007;
	const FUNC_CODE_USERGROUP_SAVE = 10008;
	const FUNC_CODE_USERGROUP_LIST = 10009;
	const FUNC_CODE_USERGROUP_UNLOCK = 10010;
	const FUNC_CODE_USER_CHANGE_PASSWORD = 10011;
	const FUNC_CODE_USER_SOCIAL_TIME = 10012;
	
	const FUNC_CODE_PAGE_CONTROL_CATEGORY_ADD = 10201;
	const FUNC_CODE_PAGE_CONTROL_CATEGORY_EDIT = 10202;
	const FUNC_CODE_PAGE_CONTROL_CATEGORY_DELETE = 10203;
	const FUNC_CODE_PAGE_CONTROL_CATEGORY_LIST = 10208;
	const FUNC_CODE_PAGE_CONTROL_ADD = 10204;
	const FUNC_CODE_PAGE_CONTROL_EDIT = 10205;
	const FUNC_CODE_PAGE_CONTROL_DELETE = 10206;
	const FUNC_CODE_PAGE_CONTROL_LIST = 10207;

	const FUNC_CODE_PAGE_CONTROL_ADD_DATA = 10301;
	const FUNC_CODE_PAGE_CONTROL_EDIT_DATA = 10302;
	const FUNC_CODE_PAGE_CONTROL_DEL_DATA = 10303;
	
	//网站管理
	const FUNC_CODE_WEB_LIST = 10304;
	const FUNC_CODE_WAP_LIST = 10305;
	
	const FUNC_CODE_EVENT_ADD = 10015;
	const FUNC_CODE_EVENT_LIST = 10016;
	const FUNC_CODE_EVENT_SAVE = 10017;
	const FUNC_CODE_EVENT_DELETE = 10018;
	
	const FUNC_CODE_EVENT_CATEGORY_ADD = 100191;
	const FUNC_CODE_EVENT_CATEGORY_DELETE = 100192;
	const FUNC_CODE_EVENT_CATEGORY_SAVE = 100193;

	const FUNC_CODE_IMAGE_CATEGORY_DEFINE_ADD = 100207;
	const FUNC_CODE_IMAGE_CATEGORY_DEFINE_EDIT = 100208;
	const FUNC_CODE_IMAGE_CATEGORY_DEFINE_DELETE = 100209;
	const FUNC_CODE_IMAGE_CATEGORY_DEFINE_LIST = 100210;
	
	const FUNC_CODE_PRODUCT_CATEGORY_LIST = 100301;
	const FUNC_CODE_PRODUCT_CATEGORY_ADD = 100302;
	const FUNC_CODE_PRODUCT_CATEGORY_SAVE = 100303;
	const FUNC_CODE_PRODUCT_CATEGORY_DELETE = 100304;

	const FUNC_CODE_PRODUCT_PROPERTY_LIST = 100305;
	const FUNC_CODE_PRODUCT_PROPERTY_ADD = 100306;
	const FUNC_CODE_PRODUCT_PROPERTY_SAVE = 100307;
	const FUNC_CODE_PRODUCT_PROPERTY_DELETE = 100308;
	const FUNC_CODE_PRODUCT_ADD = 100309;
	const FUNC_CODE_PRODUCT_LIST = 100310;
	const FUNC_CODE_PRODUCT_UPDATE = 100311;
	const FUNC_CODE_PRODUCT_DEL = 100312;

	const FUNC_CODE_FEATURE_ADD = 100400;
	const FUNC_CODE_FEATURE_EDIT = 100401;
	const FUNC_CODE_FEATURE_DEL = 100402;
	const FUNC_CODE_FEATURE_SERIAL_ADD = 10403;
	const FUNC_CODE_FEATURE_SERIAL_EDIT = 10404;
	const FUNC_CODE_FEATURE_SERIAL_DEL = 10405;
	const FUNC_CODE_FEATURE_LIST = 10406;
	const FUNC_CODE_FEATURE_SERIAL_LIST = 10407;
	const FUNC_CODE_FEATURE_PUBLISH = 10408;
	const FUNC_CODE_FEATURE_PARAM_MANAGER = 10409;
	const FUNC_CODE_FEATURE_EDIT_PROPERTY = 100410;
	
	const FUNC_CODE_CELEBRITY_LIST = 100500;
	const FUNC_CODE_CELEBRITY_ADD = 100501;
	const FUNC_CODE_CELEBRITY_EDIT = 100502;
	const FUNC_CODE_CELEBRITY_DELETE = 100503;
	const FUNC_CODE_TAG_LIST = 10601;
	const FUNC_CODE_TAG_ADD = 10602;
	const FUNC_CODE_TAG_EDIT = 10603;
	const FUNC_CODE_TAG_DELETE = 10604;
	
	const FUNC_CODE_IMAGE_LIBRARY_UPLOAD = 100701;
	const FUNC_CODE_IMAGE_LIBRARY_EDIT = 100702;
	const FUNC_CODE_IMAGE_LIBRARY_DELETE = 100703;
	const FUNC_CODE_IMAGE_LIBRARY_MANAGE = 100704;
	const FUNC_CODE_IMAGE_LIBRARY_DOWNLOAD = 100705;
	
	const FUNC_CODE_BRAND_ADD = 100801;
	const FUNC_CODE_BRAND_SAVE = 100802;
	const FUNC_CODE_BRAND_DELETE = 100803;
	const FUNC_CODE_BRAND_LIST = 100804;
	
	const FUNC_CODE_BRAND_ADD_DESIGENR = 100805;
	const FUNC_CODE_BRAND_EDIT_DESIGENR = 100806;
	const FUNC_CODE_BRAND_DELETE_DESIGENR = 100807;
	const FUNC_CODE_BRAND_DESIGENR_LIST = 100808;
	
	//达人
	const FUNC_CODE_STAR_ADD = 100809;
	const FUNC_CODE_STAR_EDIT = 100810;
	const FUNC_CODE_STAR_DELETE = 100811;
	const FUNC_CODE_STAR_LIST = 100812;
	const FUNC_CODE_STAR_EDIT_SECRET = 100813;
	const FUNC_CODE_STAR_EXPORT = 100814;
	
	//美剧库
	const FUNC_CODE_AMERICAN_LIST = 100815;
	const FUNC_CODE_AMERICAN_ADD = 100816;
	const FUNC_CODE_AMERICAN_DELETE = 100817;
	
	const FUNC_CODE_AMERICAN_WEEKLIST = 100818;
	const FUNC_CODE_AMERICAN_WEEKADD = 100819;
	const FUNC_CODE_AMERICAN_WEEKDELETE = 100820;
	
	//合作管理
	const FUNC_CODE_COOPERATION_LIST = 100821;
	const FUNC_CODE_COOPERATION_ADD = 100823;
	const FUNC_CODE_COOPERATION_EDIT = 100824;
	const FUNC_CODE_COOPERATION_DELETE = 100825;

	//保密信息和经纪人信息
	const FUNC_CODE_TALENT_SECRET_BROKER = 100826;
	const FUNC_CODE_CELEBRITY_SECRET_BROKER = 100827;
	const FUNC_CODE_DESIGNER_SECRET_BROKER = 100828;
	const FUNC_CODE_BRAND_SECRET_BROKER = 100829;
	
	//尚道专题
	const FUNC_CODE_FASHIONTALK_LIST = 100830;
	const FUNC_CODE_FASHIONTALK_ADD = 100831;
	const FUNC_CODE_FASHIONTALK_EDIT = 100832;
	const FUNC_CODE_FASHIONTALK_DELETE = 100833;
	

	//内容搜索
	const FUNC_CODE_CONTENT_SEARCH = 100835;
	
	//新保密合作管理
	const FUNC_CODE_ARTISTSECRECY_LIST = 100852;
	const FUNC_CODE_ARTISTSECRECY_ADD = 100853;
	const FUNC_CODE_ARTISTSECRECY_EDIT = 100854;
	const FUNC_CODE_ARTISTSECRECY_DELETE = 100855;
	
	//合作栏目操作
	const FUNC_CODE_COOPERATION_COLUMN_OPERATE = 100856;

	//合作负责人
	const FUNC_CODE_COOPERATION_PRINCIPAL = 100857;
	
	//监听表管理	
	const FUNC_CODE_COOPERATION_CRONTAB_LIST = 100860;
	const FUNC_CODE_COOPERATION_CRONTAB_ADD = 100861;
	const FUNC_CODE_COOPERATION_CRONTAB_EDIT = 100862;
	const FUNC_CODE_COOPERATION_CRONTAB_DELETE = 100863;
	
	const FUNC_CODE_DATA_ASSOCIATION_SET_IMAGE_CELEBRITY = 100901;
	const FUNC_CODE_DATA_ASSOCIATION_SET_IMAGE_PRODUCT = 100902;
	const FUNC_CODE_DATA_ASSOCIATION_SET_IMAGE_BRAND = 100903;
	const FUNC_CODE_DATA_ASSOCIATION_SET_IMAGE_EVENT = 100904;
	const FUNC_CODE_DATA_ASSOCIATION_SET_EVENT_BRAND = 100905;
	
	const FUNC_CODE_BRAND_IMAGE_ADD = 101001;
	const FUNC_CODE_BRAND_IMAGE_DELETE = 101002;
	const FUNC_CODE_BRAND_IMAGE_LIST = 101003;
	
	
	const FUNC_CODE_ARTICLE_LIST = 101101;
	const FUNC_CODE_ARTICLE_ADD = 101102;
	const FUNC_CODE_ARTICLE_UPDATE = 101103;
	const FUNC_CODE_ARTICLE_DELETE = 101104;

	
	//emode管理
	const FUNC_CODE_EMODE_LIST = 101904;
	const FUNC_CODE_EMODE_ADD = 101905;
	const FUNC_CODE_EMODE_DELETE = 101906;
	
	const FUNC_CODE_EMODE_ARTICLE_LIST = 101907;
	const FUNC_CODE_EMODE_ARTICLE_ADD = 101908;
	const FUNC_CODE_EMODE_ARTICLE_DELETE = 101909;
	
	//时尚穿搭
	const FUNC_CODE_FASHION_WEAR_EDIT = 101910;
	const FUNC_CODE_FASHION_WEAR_DELETE = 101911;
	
	//生成快讯
	const FUNC_CODE_NEWS_INFO = 101912;
	//统计
	const FUNC_CODE_STATISTIC_ARTICLE = 101201;
	const FUNC_CODE_STATISTIC_EDITOR = 101202;
	const FUNC_CODE_STATISTIC_IMAGE = 101203;
	const FUNC_CODE_STATISTIC_IMAGE_COLLECTIVE = 101204;
	const FUNC_CODE_STATISTIC_COMMENT_VEST = 101205;
	
	//试用中心
	const FUNC_CODE_TRYOUT_MANAGE = 101301;
	const FUNC_CODE_TRYOUT_ADD = 101302;
	const FUNC_CODE_TRYOUT_UPDATE = 101303;
	const FUNC_CODE_TRYOUT_DELETE = 101304;
	const FUNC_CODE_TRYOUT_UPDATE_STATUS = 101308;
	
	const FUNC_CODE_TRYAPPLY_VERIFY_SUCCESS = 101305;
	const FUNC_CODE_TRYAPPLY_DELETE = 101306;
	const FUNC_CODE_TRYAPPLY_RECOVERY = 101307;
	
	// APP文章
	const FUNC_CODE_APP_ARTICLE_LIST = 101401;
	const FUNC_CODE_APP_ARTICLE_SAVE = 101402;
	const FUNC_CODE_APP_ARTICLE_DELETE = 101404;
	// APP图片
	const FUNC_CODE_APP_IMAGE_LIST = 101405;
	const FUNC_CODE_APP_IMAGE_ADD = 101406;
	const FUNC_CODE_APP_IMAGE_UPDATE = 101407;
	const FUNC_CODE_APP_IMAGE_DELETE = 101408;
	// APP活动
	const FUNC_CODE_APP_ACTIVITY_LIST = 101409;
	const FUNC_CODE_APP_ACTIVITY_ADD = 101410;
	const FUNC_CODE_APP_ACTIVITY_UPDATE = 101411;
	const FUNC_CODE_APP_ACTIVITY_DELETE = 101412;
	
	//pc列表
	const FUNC_CODE_PCTOAPP_LIST = 107001;
	const FUNC_CODE_PCTOAPP_PRODUCE = 107002;
	
	//服饰管理
	const FUNC_CODE_APP_FASHION_LIST = 101501;
	const FUNC_CODE_APP_FASHION_ADD = 101502;
	
	//app通知管理
	const FUNC_CODE_APP_STATION_MESSAGE_LIST = 101503;
	const FUNC_CODE_APP_STATION_MESSAGE_ADD = 101504;
	const FUNC_CODE_APP_STATION_MESSAGE_DELETE = 10174;
	const FUNC_CODE_APP_LOGN_MESSAGE_LIST = 101505;
	const FUNC_CODE_APP_LOGN_MESSAGE_ADD = 101506;
	const FUNC_CODE_APP_SYSTEM_MESSAGE_LIST = 101507;
	const FUNC_CODE_APP_SYSTEM_MESSAGE_ADD = 101508;
	
	//APP强制更新
	const FUNC_CODE_APP_UPDATE_LIST = 101520;
	const FUNC_CODE_APP_UPDATE_ADD = 101521;
	const FUNC_CODE_APP_UPDATE_DELETE = 101522;
	
	const FUNC_CODE_APP_STATION_ERROR_MESSAGE_LIST = 10175;
	//app评论
	const FUNC_CODE_APP_FEEDBACK = 101509;
	const FUNC_CODE_APP_COMMENT = 101510;
	const FUNC_CODE_APP_REPORT = 101511;
	//app统计
	const FUNC_CODE_APP_STATISTIC_ARTICLE = 101601;
	const FUNC_CODE_APP_STATISTIC_SPREAD = 101602;
	const FUNC_CODE_APP_STATISTIC_USER = 101603;
	const FUNC_CODE_APP_STATISTIC_ADCOUNT = 101621;
	//app推广
	const FUNC_CODE_APP_SPREAD_ADD = 101604;
	const FUNC_CODE_APP_SPREAD_DELETE = 110260;
	//app应用推荐
	const FUNC_CODE_APP_ISO_LIST = 101605;
	const FUNC_CODE_APP_ISO_ADD = 101606;
	const FUNC_CODE_APP_ISO_UPDATE = 101607;
	const FUNC_CODE_APP_ISO_OPEN = 101608;
	const FUNC_CODE_APP_AND_LIST = 101609;
	const FUNC_CODE_APP_AND_ADD = 101610;
	const FUNC_CODE_APP_AND_UPDATE = 101611;
	//app栏目、活动分类、地标、焦点图、地域
	const FUNC_CODE_APP_ARTICLE_COLUMN = 101701;
	const FUNC_CODE_APP_AREA = 101702;
	const FUNC_CODE_APP_FOCUS = 101703;
	const FUNC_CODE_APP_FOCUS_1 = 101705;
	
	const FUNC_CODE_APP_REGION = 101704; 
	
	//App行为统计
	const FUNCTION_CODE_APP_STATISTIC_ACTION = 101903;
	
	/* APP内容管理 */
	const FUNC_CODE_APP_COLUMN_LIST = 102109;
	const FUNC_CODE_APP_COLUMN_ADD = 102110;
	const FUNC_CODE_APP_COLUMN_EDIT = 102111;
	const FUNC_CODE_APP_COLUMN_DEL = 102112;
	//文章统计列表
	const FUNC_CODE_APP_STATISTIC_LIST = 102300;
	
	//头条焦点
	const FUNC_CODE_APP_HEADLINE_LIST = 102301;
	const FUNC_CODE_APP_HEADLINE_ADD = 102302;
	const FUNC_CODE_APP_HEADLINE_EDIT = 102303;
	const FUNC_CODE_APP_HEADLINE_DEL = 102304;
	
	/* app文章管理 */
	const FUNC_CODE_APP_NEW_ARTICLE_LIST = 102001;
	
	
	const FUNC_CODE_APP_NEW_ARTICLE_MIXED_ADD = 102001;
	const FUNC_CODE_APP_NEW_ARTICLE_MIXED_EDIT = 102002;
	const FUNC_CODE_APP_NEW_ARTICLE_MIXED_DEL = 102003;
	
	
	const FUNC_CODE_VIDEO_LIST = 102101;
	const FUNC_CODE_VIDEO_ADD = 102102;
	const FUNC_CODE_VIDEO_DEL = 102103;
	const FUNC_CODE_VIDEO_CATEGORY_ADD = 102104;
	const FUNC_CODE_VIDEO_CATEGORY_DEL = 102105;
	const FUNC_CODE_VIDEO_CATEGORY_EDIT = 102106;
	const FUNC_CODE_VIDEO_SAVE = 102107;
	const FUNC_CODE_VIDEO_CATEGORY_LIST = 102108;
	
	/* APP 标签管理 */
	const FUNC_CODE_APP_TAGS_LIST = 102113;
	const FUNC_CODE_APP_TAGS_ADD = 102114;
	const FUNC_CODE_APP_TAGS_EDIT = 102115;
	const FUNC_CODE_APP_TAGS_DEL = 102116;
	
	/* APP 图片管理 */
	const FUNC_CODE_APP_FILE_LIST = 102117;
	const FUNC_CODE_APP_FILE_ADD = 102118;
	const FUNC_CODE_APP_FILE_EDIT = 102119;
	const FUNC_CODE_APP_FILE_DEL = 102120;
	/*APP 评论管理*/
	const FUNC_CODE_APP_COMMENT_LIST = 102121;
	const FUNC_CODE_APP_COMMENT_ADD = 102122;
	const FUNC_CODE_APP_COMMENT_EDIT = 102123;
	const FUNC_CODE_APP_COMMENT_DEL = 102124;
	
	/*相册管理*/
	const FUNC_CODE_APP_ALBUMS_LIST = 102125;
	
	/*APP 版本升级*/
	const FUNC_CODE_APP_APPVERSION_LIST = 102126;
	const FUNC_CODE_APP_APPVERSION_ADD = 102127;
	const FUNC_CODE_APP_APPVERSION_EDIT = 102128;
	const FUNC_CODE_APP_APPVERSION_DEL = 102129;
	
	/*APP 音频管理*/
	const FUNC_CODE_APP_AUDIO_LIST = 102130;
	const FUNC_CODE_APP_AUDIO_ADD = 102131;
	const FUNC_CODE_APP_AUDIO_EDIT = 102132;
	const FUNC_CODE_APP_AUDIO_DEL = 102133;
	
	/*APP 最近流行*/
	const FUNC_CODE_APP_BOOTH_LIST = 102134;
	
	/*APP 封面管理*/
	const FUNC_CODE_APP_COVER_LIST = 102135;
	const FUNC_CODE_APP_COVER_EDIT = 102136;
	
	/*APP 商品管理*/
	const FUNC_CODE_APP_GOODS_LIST = 102137;
	const FUNC_CODE_APP_GOODS_ADD = 102138;
	const FUNC_CODE_APP_GOODS_EDIT = 102139;
	const FUNC_CODE_APP_GOODS_DEL = 102140;
	
	/*APP 通知管理*/
	const FUNC_CODE_APP_MESSAGE_LIST = 102141;
	const FUNC_CODE_APP_MESSAGE_ADD = 102142;
	const FUNC_CODE_APP_MESSAGE_EDIT = 102143;
	const FUNC_CODE_APP_MESSAGE_DEL = 102144;
	
	/*APP 用户审核*/
	const FUNC_CODE_APP_USER_MANAGER_LIST = 102145;
	
	/*APP 用户资料*/
	const FUNC_CODE_APP_USER_INFO_LIST = 102146;
	
	/*APP 用户反馈举报*/
	const FUNC_CODE_APP_ADVICE_REPORT_LIST = 102146;
	
	
	//公告
	const FUNC_CODE_ANNOUNCEMENT_ADD = 103101;
	const FUNC_CODE_ANNOUNCEMENT_DEL = 103102;
	const FUNC_CODE_ANNOUNCEMENT_EDIT = 103103;
	const FUNC_CODE_ANNOUNCEMENT_LIST = 103104;

	// 站点
	const FUNC_CODE_SITE_LIST = 102201;//列表
	const FUNC_CODE_SITE_ADD = 102202;//添加
	const FUNC_CODE_SITE_EDIT = 102203;//修改
	const FUNC_CODE_SITE_DELETE = 102204;//删除
	const FUNC_CODE_SITE_CHANNEL_ADD = 102205;//添加站点频道
	const FUNC_CODE_SITE_CHANNEL_EDIT = 102206;//修改站点频道
	const FUNC_CODE_SITE_CHANNEL_DELETE = 102207;//删除站点频道
	const FUNC_CODE_PAGE_TEMPLATE_ADD = 102208;//添加模版
	const FUNC_CODE_PAGE_TEMPLATE_EDIT = 102209;//修改模版
	const FUNC_CODE_PAGE_TEMPLATE_DEL = 102210;//删除模版	
	const FUNC_CODE_SITE_CHANNEL_TEMPLATE_ADD = 102211;//添加频道模版
	const FUNC_CODE_SITE_CHANNEL_TEMPLATE_EDIT = 102212;//修改频道模版
	const FUNC_CODE_SITE_CHANNEL_TEMPLATE_DEL = 102213;//删除频道模版
	
	//关键词
	const FUNC_CODE_KEYWORD_LIST = 104101;
	const FUNC_CODE_KEYWORD_ADD = 104102;
	const FUNC_CODE_KEYWORD_DEL = 104103;

	//图集
	const FUNC_CODE_IMAGECOLLECTIVE_LIST = 105101;
	const FUNC_CODE_IMAGECOLLECTIVE_ADD = 105102;
	const FUNC_CODE_IMAGECOLLECTIVE_DEL = 105103;
	const FUNC_CODE_IMAGECOLLECTIVE_EDIT = 105104;
	const FUNC_CODE_IMAGECOLLECTIVE_PIC_DEL = 105105;//删除图集图片
	const FUNC_CODE_IMAGECOLLECTIVE_PIC_INFO_UPDATE = 105106;//更新图集图片信息
	const FUNC_CODE_IMAGECOLLECTIVE_PRO_UPDATE = 105107;//删除导读图
	
	const FUNC_CODE_IMAGECOLLECTIVEARTICLE_ADD =106101;
	
	//友情链接
	const FUNC_CODE_LINK_LIST = 107101;
	const FUNC_CODE_LINK_ADD = 107102;
	const FUNC_CODE_LINK_EDIT = 107103;
	const FUNC_CODE_LINK_DEL = 107104;
	
	//留言反馈
	const FUNC_CODE_QUESTION_LIST = 108101;
	const FUNC_CODE_QUESTION_DEL = 108102;
	const FUNC_CODE_QUESTION_ADD = 108103;
	
	//试用中心公告
	const FUNC_CODE_TRY_NOTICE_LIST = 109101;
	const FUNC_CODE_TRY_NOTICE_ADD = 109102;
	const FUNC_CODE_TRY_NOTICE_EDIT = 109103;
	const FUNC_CODE_TRY_NOTICE_DELETE = 109104;

	//试用中心批量回帖
	const FUNC_CODE_TRYOUT_APPLY = 109201;
	const FUNC_CODE_TRYOUT_PV_NUM = 109202;
	
	// 独家
	const FUNC_CODE_EXCLUSIVE_ADD = 111101;
	const FUNC_CODE_EXCLUSIVE_LIST = 111102;
	const FUNC_CODE_EXCLUSIVE_EDIT = 111103;
	const FUNC_CODE_EXCLUSIVE_DEL = 111104;
	
	// 行为统计
	const FUNC_CODE_USER_MONITOR_PAGE_DEFINE_ADD = 112101;
	const FUNC_CODE_USER_MONITOR_PAGE_DEFINE_LIST = 112102;
	const FUNC_CODE_USER_MONITOR_PAGE_DEFINE_EDIT = 112103;
	const FUNC_CODE_USER_MONITOR_PAGE_DEFINE_DEL = 112104;
	

	const FUNC_CODE_USER_MONITOR_SITE_DEFINE_DEL = 112105;
	const FUNC_CODE_USER_MONITOR_SITE_DEFINE_ADD = 112106;
	const FUNC_CODE_USER_MONITOR_SITE_DEFINE_EDIT = 112107;
	
	//WAP内容管理
	const FUNC_CODE_M_ARTICLE_LIST = 113101;
	const FUNC_CODE_M_IMAGE_LIST = 113102;
	const FUNC_CODE_M_QUESTION_LIST = 113103;
	const FUNC_CODE_H5_FEATURE_LIST = 113104;
	const FUNC_CODE_H5_FEATURE_EDIT = 113105;
	
	//评论管理
	const FUNC_CODE_COMMENT_LIST = 114101;
	const FUNC_CODE_SENSITIVE_COMMENT_LIST = 114120;
	const FUNC_CODE_COMMENT_DEL = 114100;
	
	//评论审核
	const FUNC_CODE_COMMENT_VERIFY = 114108;
	
	//评论类型
	const FUNC_CODE_COMMENT_TYPE_LIST = 114102;
	const FUNC_CODE_COMMENTTYPE_ADD = 114103;
	const FUNC_CODE_COMMENTTYPE_EDIT = 114104;
	const FUNC_CODE_COMMENTTYPE_DEL = 114105;
	const DATA_ERROR_COMMENT_TYPE_NAME_EXIST = 114900;
	const DATA_ERROR_COMMENT_TYPE_CODE_EXIST = 114901;
	//评论举报
	const FUNC_CODE_COMMENT_REPORT_LIST = 114106;
	//冻结评论
	const FUNC_CODE_COMMENT_BAN_LIST = 114107;
	//敏感词
	const FUNC_CODE_COMMENT_SENSITIVE = 114109;
	
	
	//冻结管理
	const FUNC_CODE_COMMENT_BAN_ADD = 115101;
	
	
	/* 微信管理 */
	const FUNC_CODE_WEIXIN_LIST = 114200;
	const FUNC_CODE_WEIXIN_ADD = 114201;
	const FUNC_CODE_WEIXIN_EDIT = 114202;
	const FUNC_CODE_WEIXIN_MENU_ADD = 114203;
	const FUNC_CODE_WEIXIN_MENU_EDIT = 114204;
	const FUNC_CODE_WEIXIN_MENU_DELETE = 114205;
	const FUNC_CODE_WEIXIN_KEYWORDS_DELETE = 114206;
	const FUNC_CODE_WEIXIN_KEYWORDS_ADD = 114207;
	const FUNC_CODE_WEIXIN_KEYWORDS_EDIT = 114208;
	const FUNC_CODE_WEIXIN_MENU_LIST = 114209;
	const FUNC_CODE_WEIXIN_KEYWORDS_LIST = 114212;
	const FUNC_CODE_WEIXIN_GRAPHIC_MESSAGE = 114213;
	
    const FUNC_CODE_WEIXIN_ARTICLE_LIST = 114214;
    const FUNC_CODE_WEIXIN_ARTICLE_EDIT = 114215;
    const FUNC_CODE_WEIXIN_ARTICLE_DELETE = 114216;
    
    const FUNC_CODE_WEIXIN_STATISTIC = 114217;
    
    const FUNC_CODE_WEIXIN_OUTSOURCE = 114218;
    const FUNC_CODE_WEIXIN_OUTSOURCE_EDIT = 114219;
    const FUNC_CODE_WEIXIN_OUTSOURCE_DEL = 114220;
    CONST FUNC_CODE_WEIXIN_OUTSOURCE_EXPORT = 114221;
    
	//明星PK管理
	const FUNC_CODE_STAR_PK_LIST = 116100;
	const FUNC_CODE_STAR_PK_ADD = 116101;
	const FUNC_CODE_STAR_PK_EDIT = 116102;
	const FUNC_CODE_STAR_PK_DEL = 116103;
	
	//街拍新ICON专题管理
	const FUNC_CODE_ICON_LIST = 116104;
	const FUNC_CODE_ICON_ADD = 116105;
	const FUNC_CODE_ICON_EDIT = 116109;
	const FUNC_CODE_ICON_DEL = 116108;

	/* 内容校正管理 */
	const FUNC_CODE_CONTENT_CORRECTION_LIST = 117110;
	const FUNC_CODE_CONTENT_CORRECTION_ADD = 117111;
	const FUNC_CODE_CONTENT_CORRECTION_DEL = 117113;
	
	/*前端效果库*/
	const FUNC_CODE_FRONT_EFFECT_LIBRARY_OPERATE = 117115;
	
	
	/* 活动管理 */
	const FUNC_CODE_ACTIVITY_LIST = 116110;
	const FUNC_CODE_ACTIVITY_ADD = 116111;
	const FUNC_CODE_ACTIVITY_EDIT = 116112;
	const FUNC_CODE_ACTIVITY_DEL = 116113;
	/* 活动关键词管理 */
	const FUNC_CODE_ACTIVITY_KEYWORD_LIST = 116114;
	const FUNC_CODE_ACTIVITY_KEYWORD_ADD = 116115;
	const FUNC_CODE_ACTIVITY_KEYWORD_EDIT = 116116;
	const FUNC_CODE_ACTIVITY_KEYWORD_DEL = 116117;
	/* 活动奖品管理 */
	const FUNC_CODE_ACTIVITY_PRIZE_LIST = 116118;
	const FUNC_CODE_ACTIVITY_PRIZE_ADD = 116119;
	const FUNC_CODE_ACTIVITY_PRIZE_EDIT = 116120;
	const FUNC_CODE_ACTIVITY_PRIZE_DEL = 116121;
	/* 活动中奖名单管理 */
	const FUNC_CODE_ACTIVITY_PRIZE_WINNER_LIST = 116122;
	const FUNC_CODE_ACTIVITY_PRIZE_WINNER_EDIT = 116124;
	
	//网站统计
	const FUNC_CODE_SITESTATISTIC_WEBSITE = 117101;
	const FUNC_CODE_SITESTATISTIC_COMMENT = 117102;
	const FUNC_CODE_SITESTATISTIC_ARTICLE = 117103;
	const FUNC_CODE_SITESTATISTIC_PIC = 117104;
	const FUNC_CODE_SITESTATISTIC_CUSTOM = 117105;
	const FUNC_CODE_SITESTATISTIC_HEAT_MAP = 117106;
	const FUNC_CODE_SITESTATISTIC_CLICK_REGION = 117107;
	const FUNC_CODE_SITESTATISTIC_FEATURE = 117108;
	const FUNC_CODE_SITESTATISTIC_EXTENSION = 117109;
	
	//灌水管理
	const FUNC_CODE_COMMENT_VEST = 118101;
	
	//社区管理
	const FUNC_CODE_COMMUNITY_FORUM_REPLAY = 116106;
	const FUNC_CODE_COMMUNITY_FORUM_LIST = 116201;
	const FUNC_CODE_COMMUNITY_DELETE_FORUM_LIST = 116202;
	
	const FUNC_CODE_COMMUNITY_MESSAGE_SYSTEM = 116107;

    const FUNC_CODE_BBS_ACTIVITY_POST = 116200;

    const FUNC_CODE_TMALL_IMAGE = 116203;

	//自媒体管理
	const FUNC_CODE_FASHIONISTA_BLOGGER_LIST = 119001;
	const FUNC_CODE_FASHIONISTA_BLOGGER_EDIT = 119002;
	const FUNC_CODE_FASHIONISTA_BLOGGER_DELETE = 119003;
	const FUNC_CODE_FASHIONISTA_CATE_LIST = 119004;
	const FUNC_CODE_FASHIONISTA_CATE_EDIT = 119005;
	const FUNC_CODE_FASHIONISTA_CATE_DELETE = 119006;
	const FUNC_CODE_FASHIONISTA_BLOG_LIST = 119007;
	const FUNC_CODE_FASHIONISTA_BLOG_EDIT = 119008;
	const FUNC_CODE_FASHIONISTA_BLOG_DELETE = 119009;

	//聚合管理
	const FUNC_CODE_POLYMER_KEYWORD_LIST = 119010;
	const FUNC_CODE_POLYMER_KEYWORD_ADD = 119011;
	const FUNC_CODE_POLYMER_KEYWORD_EDIT = 119012;
	const FUNC_CODE_POLYMER_KEYWORD_DELETE = 119013;
	const FUNC_CODE_POLYMER_KEYWORD_OBJECT_LIST = 119014;
	const FUNC_CODE_POLYMER_KEYWORD_OBJECT_ADD = 119015;
	const FUNC_CODE_POLYMER_KEYWORD_OBJECT_DELETE = 119016;

	const FUNC_CODE_FASHION_WEEK_LIST = 119017;
	const FUNC_CODE_FASHION_WEEK_ADD = 119018;
	const FUNC_CODE_FASHION_WEEK_EDIT = 119019;
	const FUNC_CODE_FASHION_WEEK_DELETE = 119020;
	
	//年会管理
	const FUNC_CODE_NH_LIST = 119021;
	
	// 幻灯管理
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_23 = 11023;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_24 = 11024;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_25 = 11025;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_26 = 11026;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_33 = 11033;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_41 = 11041;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_48 = 11048;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_52 = 11052;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_54 = 11054;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_88 = 11088;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_98 = 11098;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_111 = 110111;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_122 = 110122;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_131 = 110131;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_162 = 110162;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_156 = 110156;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_89 = 11089;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_55 = 11055;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_78 = 11078;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_87 = 11087;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_100 = 110100;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_112 = 110112;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_123 = 110123;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_163 = 110163;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_91 = 11091;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_56 = 11056;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_76 = 11076;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_84 = 11084;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_102 = 110102;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_114 = 110114;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_93 = 11093;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_81 = 11081;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_121 = 110121;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_42 = 11042;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_66 = 11066;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_120 = 110120;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_127 = 110127;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_137 = 110137;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_178 = 110178;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_141 = 110141;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_165 = 110165;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_145 = 110145;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_108 = 110108;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_152 = 110152;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_170 = 110170;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_176 = 110176;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_150 = 110150;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_34 = 11034;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_47 = 11047;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_182 = 110182;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_181 = 110181;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_183 = 110183;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_128 = 110128;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_27 = 11027;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_28 = 11028;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_29 = 11029;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_30 = 11030;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_31 = 11031;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_32 = 11032;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_338 = 110338;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_339 = 110339;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_341 = 110341;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_184= 110184;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_90 = 11090;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_99 = 11099;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_110 = 110110;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_124 = 110124;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_75 = 11075;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_43 = 11043;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_164 = 110164;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_83 = 11083;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_92 = 11092;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_101 = 110101;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_113 = 110113;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_169 = 110169;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_157 = 110157;
    const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_185 = 110185;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_186 = 110186;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_207 = 110207;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_168 = 110168;
	
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_277 = 110277;
 	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_267 = 110267;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_268 = 110268;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_270 = 110270;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_293 = 110293;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_269 = 110269;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_290 = 110290;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_291 = 110291;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_296 = 110296;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_295 = 110295;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_284 = 110284;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_300 = 110300;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_288 = 110288;
	
	//公共导航
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_45 = 11045;
	const FUNC_CODE_NAV_RIGHT_DATA_356 = 110356;
	
	//广告位占用
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_187 = 110187;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_188 = 110188;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_189 = 110189;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_190 = 110190;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_191 = 110191;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_192 = 110192;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_193 = 110193;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_194 = 110194;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_195 = 110195;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_196 = 110196;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_197 = 110197;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_198 = 110198;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_199 = 110199;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_200 = 110200;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_201 = 110201;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_202 = 110202;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_203 = 110203;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_204 = 110204;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_73 = 11073;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_167 = 110167;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_57 = 11057;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_85 = 11085;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_96 = 11096;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_105 = 110105;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_117 = 110117;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_173 = 110173;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_67 = 11067;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_205 = 110205;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_214 = 110214;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_206 = 110206;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_211 = 110211;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_212 = 110212;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_213 = 110213;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_240 = 110240;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_241 = 110241;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_242 = 110242;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_243 = 110243;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_244 = 110244;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_245 = 110245;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_246 = 110246;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_247 = 110247;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_248 = 110248;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_249 = 110249;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_250 = 110250;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_251 = 110251;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_252 = 110252;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_253 = 110253;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_266 = 110266;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_292 = 110292;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_303 = 110303;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_343 = 110343;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_345 = 110345;
	//bvglari
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_307 = 110307;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_308 = 110308;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_310 = 110310;
	//美剧库
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_312 = 110312;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_313 = 110313;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_320 = 110320;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_324 = 110324;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_325 = 110325;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_326 = 110326;
	//市场首页
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_208 = 110208;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_209 = 110209;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_210 = 110210;

	//WAP
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_215 = 110215;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_232 = 110232;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_233 = 110233;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_234 = 110234;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_235 = 110235;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_236 = 110236;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_237 = 110237;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_238 = 110238;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_239 = 110239;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_321 = 110321;
	
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_328 = 110328;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_329 = 110329;
	
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_344 = 110344;
	
	//marisfrolg
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_222 = 110222;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_223 = 110223;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_224 = 110224;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_225 = 110225;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_226 = 110226;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_227 = 110227;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_228 = 110228;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_229 = 110229;
	
	//APP
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_259 = 110259;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_299 = 110299;
	
	//新改版控件
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_70 = 11070;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_177 = 110177;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_64 = 11064;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_147 = 110147;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_97 = 11097;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_86 = 11086;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_109 = 110109;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_118 = 110118;
	
	//视频首页
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_350 = 110350;
	const FUNC_CODE_PAGE_CONTROL_MANAGER_DATA_351 = 110351;
	
	//异地上下班打卡
	const FUNC_CODE_OTHER_WORKSIGN = 111207;//异地上下班打卡
	
	//岗位
	const FUNC_CODE_JOB_ADD = 119110;
	const FUNC_CODE_JOB_LIST = 119111;
	const FUNC_CODE_JOB_EDIT = 119112;
	const FUNC_CODE_JOB_DEL = 119113;
	const FUNC_CODE_JOB_CATEGORY_ADD = 119114;
	const FUNC_CODE_JOB_CATEGORY_LIST = 119115;
	const FUNC_CODE_JOB_CATEGORY_EDIT = 119116;
	const FUNC_CODE_JOB_CATEGORY_DEL = 119117;
	
	//考勤管理
	const FUNC_CODE_ATTENDANCE_IMPORT = 120000;
	const FUNC_CODE_ATTENDANCE_MANAGE = 120001;
	const FUNC_CODE_ATTENDANCE_EDIT = 120002;
	const FUNC_CODE_ATTENDANCE_APPROVE = 120003;
	const FUNC_CODE_ATTENDANCE_WORK_DAY_ADD = 120004;
	const FUNC_CODE_ATTENDANCE_WORK_DAY_LIST = 120005;
	const FUNC_CODE_ATTENDANCE_WORK_DAY_EDIT = 120006;
	const FUNC_CODE_ATTENDANCE_WORK_DAY_DEL = 120007;
	const FUNC_CODE_ATTENDANCE_WORK_CYCLE_ADD = 120008;
	const FUNC_CODE_ATTENDANCE_WORK_CYCLE_EDIT = 120009;
	const FUNC_CODE_ATTENDANCE_WORK_CYCLE_LIST = 120010;
	const FUNC_CODE_ATTENDANCE_WORK_CYCLE_DEL = 120011;
	const FUNC_CODE_ATTENDANCE_REQUEST_LIST = 120012;//申请列表（自己）
	const FUNC_CODE_ATTENDANCE_REQUEST_AUDIT_LIST = 120013;//申请批准
	const FUNC_CODE_ATTENDANCE_USER_LIST = 120014;
	const FUNC_CODE_ATTENDANCE_USER_ADD = 120015;
	const FUNC_CODE_ATTENDANCE_USER_UPDATE = 120016;
	const FUNC_CODE_ATTENDANCE_USER_DEL = 120017;
	CONST FUNC_CODE_ATTENDANCE_DELETE = 120018;//考勤记录删除(上级领导)
	const FUNC_CODE_ATTENDANCE_STATISTICS = 120019;//考勤统计
	const FUNC_CODE_ATTENDANCE_HISTORY = 120020;//考勤原打卡记录查询
	const FUNC_CODE_ATTENDANCE_ALL_REQUEST_LIST = 120021;
	const FUNC_CODE_ATTENDANCE_HR_MANAGE = 120022;
	const FUNC_CODE_ATTENDANCE_REQUEST_LIST_HR = 120023;//申请记录HR	
	const FUNC_CODE_ATTENDANCE_APPROVE_LIST_HR = 120024;//考勤状态
	const FUNC_CODE_ATTENDANCE_VACATION_LIST = 120025;//休假成功导出
	//互动资源排期
	const FUNC_CODE_INTERACTIVE_RESOURCE_LIST = 121001;
	const FUNC_CODE_INTERACTIVE_RESOURCE_ADD = 121002;
	const FUNC_CODE_INTERACTIVE_RESOURCE_DELETE = 121003;
	const FUNC_CODE_INTERACTIVE_RESOURCE_EDIT = 121004;
	
	const DATA_ERROR_CODE_PERMISION_SHOW_HISTORY = 10005;
	
	const DATA_ERROR_CODE_SYSTEM = 40001;//系统错误
	
	const FUNC_CODE_MANAGER_BD_KEYWORDS = 130001;

	

	private static $currentUser = null;
	
	public function __construct(){}
	
	public static function allowOperation($funcCode,$userPermission=\haibao\cms\model\data\User::PERMISSION_EMPLOYEE,$userId=null){
		$userModel = null;
		if ($userId){
			$userModel = \haibao\cms\business\User::getUserById($userId);
			if (!$userModel){
				return false;
			}
		}
		else{
			$userModel = self::getCurrentUser();
		}
		
		$allow = false;
		if($userModel){
			if ($userModel->Permission == \haibao\cms\model\data\User::PERMISSION_ADMIN){
				return true;
			}
			switch ($userPermission){
				case \haibao\cms\model\data\User::PERMISSION_EMPLOYEE:
					break;
				case \haibao\cms\model\data\User::PERMISSION_MANAGER:
					if ($userModel->Permission == \haibao\cms\model\data\User::PERMISSION_EMPLOYEE){
						return false;
					}
					break;
				case \haibao\cms\model\data\User::PERMISSION_ADMIN:
					if ($userModel->Permission != \haibao\cms\model\data\User::PERMISSION_ADMIN){
						return false;
					}
					break;
			}
			
			foreach($userModel->Groups as $groupId){
				$funcCodes = UserGroup::getFuncCodesByGroupId($groupId);
				if (in_array($funcCode, $funcCodes)){
					$allow = true;
					break;
				}
			}
		}
		
		return $allow;
	}
	
	public static function checkOperation($funcCode,$userPermission=\haibao\cms\model\data\User::PERMISSION_EMPLOYEE,$userId=null){
		if (!self::allowOperation($funcCode,$userPermission,$userId)){
			throw new BusinessException('对不起，你无此权限，请联系系统管理员！',self::ACCESS_DENIED);
		}
	}
	
	public static function setCurrentUser($userModel){
		self::$currentUser = $userModel;
	}
	
	public static function getCurrentUser(){
		return self::$currentUser;
	}
	
	public static function saveOperateHistory($operateType,$operateData,$userId = null){
		if (!$userId){
			$userId = self::getCurrentUser()->Id;
		}
		
		$model = new \haibao\cms\model\data\UserOperateHistory();
		$model->UserId = $userId;
		$model->OperateData = json_encode($operateData);
		$model->OperateType = $operateType;
		$model->OperateTime = new \DateTime();
		$data = new \haibao\cms\data\UserOperateHistory();
		
		$data->saveHistory($model);
	}
}
